<!--
 * @Description: 商家远程项目二次审核列表
 * @Author: liyujie
 * @Date: 2021/09/08
 * @Last Modified by: liyujie
 * @Last Modified time: 2021/09/08
-->
<template>
    <div class="wrapper">
        <div class="content-wrapper">
            <!-- header -->
            <div class="header">
                <div class="header-title">
                    平台二次审核
                </div>
                <div
                    class="back"
                    @click="handleRoute('shopProjectSecondaryVerify')"
                >
                    返回
                </div>
            </div>
            <!-- /header -->
            <div class="form-wrapper">
                <!-- 处理状态显示区域 -->
                <div class="base-info">
                    <div class="status-view">
                        <template v-if="formData.verify_status === 0">
                            <div class="status-text warning">待处理</div>
                            <div class="status-desc-text">商家未通过此用户提交的反馈，请进行二次审核～</div>
                        </template>
                        <template v-if="formData.verify_status === 1">
                            <div class="status-text success">任务通过</div>
                            <div class="status-desc-text">平台通过该用户的任务反馈～</div>
                        </template>
                        <template v-if="formData.verify_status === -1">
                            <div class="status-text danger">任务不通过</div>
                            <div class="status-desc-text">平台认可商家不通过的处理意见～</div>
                        </template>
                    </div>
                    <div class="info-card">
                        <div class="info-card-item">
                            <div class="info-item">
                                <div class="info-item__label">用户姓名：</div>
                                <div class="info-item__value">{{ formData.true_name ? formData.true_name : '--' }}</div>
                            </div>
                            <div class="info-item">
                                <div class="info-item__label">学校信息：</div>
                                <div class="info-item__value">{{ formData.school_name ? formData.school_name : '--' }}</div>
                            </div>
                            <div class="info-item">
                                <div class="info-item__label">联系方式：</div>
                                <div class="info-item__value">{{ formData.phone ? formData.phone : '--' }}</div>
                            </div>
                            <div class="info-item">
                                <div class="info-item__label">任务提交时间：</div>
                                <div class="info-item__value">{{ formData.submit_time * 1000 | dateFormatter('yyyy/MM/dd HH:mm') }}</div>
                            </div>
                        </div>
                        <div class="info-card-item">
                            <div class="info-item">
                                <div class="info-item__label">企业名称：</div>
                                <div class="info-item__value">{{ formData.company_name ? formData.company_name : '--' }}</div>
                            </div>
                            <div class="info-item">
                                <div class="info-item__label">审核时间：</div>
                                <div class="info-item__value">{{ formData.shop_verify_time * 1000 | dateFormatter('yyyy/MM/dd HH:mm') }}</div>
                            </div>
                            <div class="info-item">
                                <div class="info-item__label">不通过原因：</div>
                                <div class="info-item__value">{{ formData.verify_fail_reason ? formData.verify_fail_reason : '--' }}</div>
                            </div>
                        </div>
                        <div class="info-card-item">
                            <div class="info-item">
                                <div class="info-item__label">平台处理结果：</div>
                                <div class="info-item__value">
                                    <span v-if="formData.verify_status === 0">待处理</span>
                                    <span v-if="formData.verify_status === 1">任务通过</span>
                                    <span v-if="formData.verify_status === -1">任务不通过</span>
                                </div>
                            </div>
                            <div class="info-item">
                                <div class="info-item__label">处理时间：</div>
                                <div class="info-item__value">{{ formData.verify_time * 1000 | dateFormatter('yyyy/MM/dd HH:mm') }}</div>
                            </div>
                            <div class="info-item">
                                <div class="info-item__label">处理人：</div>
                                <div class="info-item__value">{{ formData.verify_admin_true_name ? formData.verify_admin_true_name : '--' }}</div>
                            </div>
                            <div class="info-item">
                                <div class="info-item__label">处理原因：</div>
                                <div class="info-item__value">{{ formData.verify_pass_reason_for_shop ? formData.verify_pass_reason_for_shop : '--' }}</div>
                            </div>
                        </div>
                    </div>
                </div>
                <el-form>
                    <!--任务基本信息区域-->
                    <div class="form-view">
                        <div class="form-title">
                            任务基本信息
                        </div>
                        <el-form inline>
                            <el-row>
                                <el-col :span="8">
                                    <el-form-item label="任务名称：">
                                        {{ formData.task_title }}
                                    </el-form-item>
                                </el-col>
                                <el-col :span="8">
                                    <el-form-item label="领取时间：">
                                        <template v-if="formData.apply_start_time !== -1">
                                            {{ formData.apply_start_time * 1000 | dateFormatter('yyyy/MM/dd HH:mm:ss') }} - {{ formData.apply_end_time * 1000 | dateFormatter('yyyy/MM/dd HH:mm:ss') }}
                                        </template>
                                        <template v-else>
                                            {{ formData.start_time * 1000 | dateFormatter('yyyy/MM/dd HH:mm:ss') }} - {{ formData.end_time * 1000 | dateFormatter('yyyy/MM/dd HH:mm:ss') }}
                                        </template>
                                    </el-form-item>
                                </el-col>
                                <el-col :span="8">
                                    <el-form-item label="领取次数：">
                                        {{ formData.accept_limit_count === -1 ? '重复领取' : '单次领取' }}
                                    </el-form-item>
                                </el-col>
                            </el-row>
                            <el-row>
                                <el-col :span="8">
                                    <el-form-item label="任务总数：">
                                        {{ formData.all_count }}个
                                    </el-form-item>
                                </el-col>
                                <el-col :span="8">
                                    <el-form-item label="单任务奖励：">
                                        {{ formData.task_price }}元/个
                                    </el-form-item>
                                </el-col>
                                <el-col :span="8">
                                    <el-form-item label="每周限制数：">
                                        <span v-if="formData.student_week_receive_num">
                                            {{ formData.student_week_receive_num === -1 ? '不限制' : `${formData.student_week_receive_num}次` }}
                                        </span>
                                        <span v-else>--</span>
                                    </el-form-item>
                                </el-col>
                            </el-row>
                            <el-row>
                                <el-col :span="8">
                                    <el-form-item label="任务时间：">
                                        <div v-if="formData.accept_expire_in">
                                            {{ formData.accept_expire_in === -1 ? '不限制' : `${formData.accept_expire_in}小时` }}
                                        </div>
                                        <div v-else>--</div>
                                    </el-form-item>
                                </el-col>
                                <el-col :span="8">
                                    <el-form-item label="用户性别：">
                                        {{ formData.sex === 1 ? '男' : formData.sex === 2 ? '女' : '不限' }}
                                    </el-form-item>
                                </el-col>
                                <el-col :span="8">
                                    <el-form-item label="用户领取门槛：">
                                        <template v-if="formData.task_category === 3">
                                            {{ formData.student_limit_stuagent_level === 5 ? 'E5' : `E${formData.student_limit_stuagent_level} ~ E5` }}
                                        </template>
                                        <template v-else>
                                            {{ formData.allow_agent_levels ? formData.allow_agent_levels.map(item => `E${item}`).join() : '--' }}
                                        </template>
                                    </el-form-item>
                                </el-col>
                            </el-row>
                        </el-form>
                        <el-form label-width="82px">
                            <el-form-item
                                label="学校限制："
                                style="width: 680px"
                            >
                                <span v-if="formData.school_limit_type === 0">不限制</span>
                                <span v-if="formData.school_limit_type === 1">全部限制</span>
                                <div v-if="formData.school_limit_type === 2">
                                    <div class="table-wrapper">
                                        <el-table
                                            :data="pageData"
                                            ref="table"
                                            style="width: 680px"
                                        >
                                            <el-table-column
                                                label=""
                                                width="36px"
                                            />
                                            <el-table-column
                                                prop="school_name"
                                                label="学校名称"
                                            />
                                            <el-table-column
                                                prop="school_name"
                                                label="所在省市"
                                            >
                                                <template slot-scope="scope">
                                                    {{ scope.row.province_name }} - {{ scope.row.city_name }}
                                                </template>
                                            </el-table-column>
                                        </el-table>
                                    </div>
                                    <div
                                        class="table-footer"
                                        v-if="formData.binding_school_ids.length > 5"
                                    >
                                        <div/>
                                        <div class="pagination">
                                            <el-pagination
                                                layout="prev, pager, next"
                                                :current-page.sync="page.now_page"
                                                :total="page.total_count"
                                                :page-size="page.page_size"
                                                @current-change="getPageData"
                                            />
                                        </div>
                                    </div>
                                </div>
                            </el-form-item>
                            <el-form-item
                                label="任务介绍："
                                style="width: 678px;"
                            >
                                {{ formData.task_intro ? formData.task_intro : '--' }}
                            </el-form-item>
                            <el-form-item>
                                <div
                                    class="image-list"
                                    v-if="formData.task_intro_material && formData.task_intro_material.images && formData.task_intro_material.images.length"
                                >
                                    <el-image
                                        v-for="(url,imgIndex) in formData.task_intro_material.images"
                                        :key="imgIndex"
                                        :src="url"
                                        class="image"
                                        @click="showPreview(formData.task_intro_material.images, imgIndex)"
                                    >
                                        <div
                                            slot="error"
                                            class="image-slot"
                                        >
                                            <i class="el-icon-picture-outline"/>
                                        </div>
                                    </el-image>
                                </div>
                                <div
                                    class="video-wrapper"
                                    v-if="formData.task_intro_material && formData.task_intro_material.video_path"
                                    @click="previewVideo(formData.task_intro_material.video_preview_url)"
                                >
                                    <img
                                        class="video-icon"
                                        src="@/assets/image/play.png"
                                    >
                                    <el-image
                                        :src="formData.task_intro_material.video_cover"
                                        class="cover"
                                    >
                                        <div
                                            slot="error"
                                            class="image-slot"
                                        >
                                            <i class="el-icon-picture-outline"/>
                                        </div>
                                    </el-image>
                                </div>
                            </el-form-item>
                            <el-form-item
                                label="考核标准："
                                style="width: 678px;"
                            >
                                {{ formData.task_standard ? formData.task_standard : '--' }}
                            </el-form-item>
                            <el-form-item
                                label="任务步骤："
                                class="bold"
                                v-if="formData.guide && formData.guide.length"
                            >
                                <div
                                    class="form-content"
                                    style="padding: 24px 66px"
                                >
                                    <div
                                        v-for="(step, index) in formData.guide"
                                        :key="index"
                                        class="form-content-step"
                                    >
                                        <div class="form-content-step-title">步骤{{ numberChinese(index + 1) }}</div>
                                        <el-form-item
                                            label="步骤内容："
                                        >
                                            {{ step.content }}
                                        </el-form-item>
                                        <el-form-item
                                            label="步骤图片："
                                            v-if="step.images && step.images.length"
                                        >
                                            <div class="image-list">
                                                <el-image
                                                    v-for="(url,imgIndex) in step.images"
                                                    :key="imgIndex"
                                                    :src="url"
                                                    class="image"
                                                    @click="showPreview(step.images, imgIndex)"
                                                >
                                                    <div
                                                        slot="error"
                                                        class="image-slot"
                                                    >
                                                        <i class="el-icon-picture-outline"/>
                                                    </div>
                                                </el-image>
                                            </div>
                                        </el-form-item>
                                        <el-form-item
                                            label="步骤视频："
                                            v-if="step.video_path"
                                        >
                                            <div
                                                class="video-wrapper"
                                                @click="previewVideo(step.video_preview_url)"
                                            >
                                                <img
                                                    class="video-icon"
                                                    src="@/assets/image/play.png"
                                                >
                                                <el-image
                                                    :src="step.video_cover"
                                                    class="cover"
                                                >
                                                    <div
                                                        slot="error"
                                                        class="image-slot"
                                                    >
                                                        <i class="el-icon-picture-outline"/>
                                                    </div>
                                                </el-image>
                                            </div>
                                        </el-form-item>
                                    </div>
                                </div>
                            </el-form-item>
                            <el-form-item
                                label="常见问题："
                                class="bold"
                                v-if="formData.faq && formData.faq.length"
                            >
                                <div
                                    class="form-content"
                                    style="padding: 24px 66px"
                                >
                                    <div
                                        v-for="(faq, index) in formData.faq"
                                        :key="index"
                                        class="form-content-step"
                                    >
                                        <div class="form-content-step-title">常见问题{{ index + 1 }}：{{ faq.title }}</div>
                                        <el-form-item label-width="78px">
                                            {{ faq.desc }}
                                        </el-form-item>
                                    </div>
                                </div>
                            </el-form-item>
                            <el-form-item
                                label="素材分享"
                                class="bold"
                                v-if="formData.share_material"
                            >
                                <div
                                    class="form-content"
                                    style="padding: 24px 66px"
                                >
                                    <el-form-item
                                        label="分享文案："
                                        label-width="118px"
                                    >
                                        {{ formData.share_material.content }}
                                    </el-form-item>
                                    <el-form-item
                                        label="分享图片/视频："
                                        label-width="118px"
                                    >
                                        <div
                                            class="image-list"
                                            v-if="formData.share_material.images && formData.share_material.images.length"
                                        >
                                            <el-image
                                                v-for="(url,imgIndex) in formData.share_material.images"
                                                :key="imgIndex"
                                                :src="url"
                                                class="image"
                                                @click="showPreview(formData.share_material.images, imgIndex)"
                                            >
                                                <div
                                                    slot="error"
                                                    class="image-slot"
                                                >
                                                    <i class="el-icon-picture-outline"/>
                                                </div>
                                            </el-image>
                                        </div>
                                        <div
                                            class="video-wrapper"
                                            v-if="formData.share_material.video_url"
                                            @click="previewVideo(formData.share_material.video_preview_url)"
                                        >
                                            <img
                                                class="video-icon"
                                                src="@/assets/image/play.png"
                                            >
                                            <el-image
                                                :src="formData.share_material.video_cover"
                                                class="cover"
                                            >
                                                <div
                                                    slot="error"
                                                    class="image-slot"
                                                >
                                                    <i class="el-icon-picture-outline"/>
                                                </div>
                                            </el-image>
                                        </div>
                                    </el-form-item>
                                </div>
                            </el-form-item>
                        </el-form>
                    </div>
                    <!--反馈内容区域-->
                    <div
                        class="form-view"
                        style="border-bottom: 0;"
                    >
                        <div class="form-title">
                            用户反馈内容
                        </div>
                        <div
                            class="form-content"
                            style="margin-left: 80px"
                            v-if="formData.submit_config"
                        >
                            <custom-form-data :data="formData.submit_config"/>
                        </div>
                    </div>
                </el-form>
                <div class="operating-view">
                    <el-button
                        size="medium"
                        v-if="formData.verify_status !== 0"
                        @click="handleRoute('shopProjectSecondaryVerify')"
                    >
                        返回
                    </el-button>
                    <el-button
                        size="medium"
                        v-if="formData.verify_status === 0"
                        @click="showVerifyDialog(-1)"
                    >
                        任务不通过
                    </el-button>
                    <el-button
                        size="medium"
                        type="primary"
                        v-if="formData.verify_status === 0"
                        @click="showVerifyDialog(1)"
                    >
                        任务通过
                    </el-button>
                </div>
            </div>
        </div>
        <!-- 图片预览 -->
        <img-preview ref="preview" />
    </div>
</template>

<script>
import { back } from '@/mixin/back';
import { numberChinese } from "@/assets/js/utils";
import ImgPreview from "@/components/common/img-preview";
import CustomFormData from "@/components/common/custom-form-data";
import {videoPreviewDialog} from '@/components/common/video-preview';

export default {
    name: 'SecondaryVerifyDetail',
    mixins: [back],
    components: {ImgPreview, CustomFormData},
    data() {
        return {
            task_no: '',
            apply_no: '',
            formData: {},
            authResult: {},
            pageData: [],
            page: {
                now_page: 1,
                total_count: 0,
                page_size: 20
            },
        };
    },
    computed: {},
    watch: {},
    filters: {
        typeFilter(val) {
            switch (val) {
                case 'task_intro':
                    return '任务介绍：';
                case 'task_standard':
                    return '验收标准：';
                case 'guide':
                    return '任务步骤：';
                case 'faq':
                    return '常见问题：';
                default:
                    return '--';
            }
        },
    },
    mounted() {
        let query = this.$route.query;

        this.$store.commit('SET_HEADER', [{title: "APP后台"}, {title: '工作'}, {title: '商家远程任务'}, {title: '平台二次审核', path: '/student/shop-project-secondary-verify'}, {title: '审核'}]);
        this.authResult = this.$route.meta.authResult;
        this.task_no = query.task_no;
        this.apply_no = query.apply_no;
        this.getDetailData();
    },

    methods: {
        numberChinese,
        /**
         * @description 获取数据
         */
        getDetailData() {
            let params = {
                task_no: this.task_no,
                apply_no: this.apply_no
            };

            this.$post('/student/task_stuagent_for_shop%5Cget_receive_detail', params, res => {
                if (res.code === 1) {
                    let data = res.data;

                    if(!data.share_material || data.share_material instanceof Array) {
                        data.share_material = '';
                    }
                    this.formData = data;
                    this.getPageData();
                } else {
                    this.$notify({
                        title: '提示',
                        message: res.msg,
                        type: 'warning'
                    });
                }
            });
        },

        /**
         * 路由跳转
         * @param routeName
         * @param query
         */
        handleRoute(routeName, query) {
            this.$router.push({
                name: routeName,
                query
            });
        },

        /**
         * 预览图片
         * @param   {String}    images      //单图预览
         * @param   {Array}     images      //多图预览
         * @param index
         */
        showPreview(images, index) {
            if (images && Object.prototype.toString.call(images) == '[object String]') {
                this.$refs.preview.show([
                    images
                ]);
            } else if (images && Object.prototype.toString.call(images) == '[object Array]') {
                this.$refs.preview.show(images, index);
            } else {
                this.$message({
                    type: 'warning',
                    message: '图片类型错误'
                });
            }
        },

        /**
         * 显示审核操作弹窗
         * @param action -1拒绝 2通过
         */
        async showVerifyDialog(action) {
            if(!this.authResult.auth_verify) {
                this.$notify({
                    title: '提示',
                    message: '请联系管理员添加权限',
                    type: 'warning',
                    duration: 2000
                });
                return false;
            }
            // 通过
            if (action === 1) {
                let reason = await this.$zdPrompt({
                    title: '平台二次审通过',
                    message: '通过原因',
                    placeholder: '请输入通过原因…'
                });

                if(reason) {
                    this.handleVerify(this.apply_no, action, reason);
                }
            } else {
                this.handleVerify(this.apply_no, action, '');
                /*this.$zdConfirm('是否确认通过该任务的审核？', '审核通过提示', {
                    confirmButtonText: '确定',
                    cancelButtonText: '取消',
                    type: 'warning'
                }).then(async () => {
                }).catch(() => {});*/
            }
        },

        /**
         * 审核
         * @param apply_no
         * @param verify
         * @param pass_reason
         */
        handleVerify(apply_no, verify, pass_reason) {
            let params = {
                apply_no,
                verify,
                pass_reason,
            };

            this.$post('/student/task_stuagent_for_shop%5Creceive_audit', params, resp => {
                if (resp.code === 1) {
                    this.$notify({
                        title: '提示',
                        message: '操作成功',
                        duration: 2000,
                        type: 'success'
                    });
                    this.getDetailData();
                    this.handleRoute('shopProjectSecondaryVerify');
                } else {
                    this.$notify({
                        title: '提示',
                        message: resp.msg,
                        duration: 2000,
                        type: 'warning'
                    });
                }
            });
        },

        /**
         * 处理学校分页数据
         */
        getPageData() {
            let data = this.getDataPagination(this.formData.binding_school_ids, this.page.now_page, 5);

            this.pageData = data.list;
            this.page.now_page = data.currentPage;
            this.page.total_count = data.total;
            this.page.page_size = data.pageSize;
        },

        /**
         * @name  getDataPagination
         * @desc  前端分页方法
         * @param  {Number} currentPage 当前页码，默认1
         * @param  {Number} pageSize 每页最多显示条数，默认10
         * @param  {Array} totalData 总的数据集，默认为空数组
         * @return {Object} {
                list, //当前页展示数据，数组
                currentPage, //当前页码
                pageSize, //每页最多显示条数
                total, //总的数据条数
            }
         **/
        getDataPagination (totalData = [], currentPage = 1, pageSize = 10) {
            const { length } = totalData;
            const tableData = {
                list: [],
                currentPage,
                pageSize,
                total: length
            };

            if (pageSize >= length) {
                tableData.list = totalData;
                tableData.currentPage = 1;
            } else {
                const num = pageSize * (currentPage - 1);

                if (num < length) {
                    const startIndex = num;
                    const endIndex = num + pageSize - 1;

                    tableData.list = totalData.filter((_, index) => index >= startIndex && index <= endIndex);
                } else {
                    const size = parseInt(length / pageSize);
                    const rest = length % pageSize;

                    if (rest > 0) {
                        tableData.currentPage = size + 1;
                        tableData.list = totalData.filter((_, index) => index >= (pageSize * size) && index <= length);
                    } else if (rest === 0) {
                        tableData.currentPage = size;
                        tableData.list = totalData.filter((_, index) => index >= (pageSize * (size - 1)) && index <= length);
                    }
                }
            }
            return tableData;
        },

        /**
         * 预览视频
         * @param url
         */
        previewVideo(url) {
            videoPreviewDialog({
                previewUrl: url
            });
        }
    }
};
</script>

<style lang="less" scoped>
.wrapper {
    width: 100%;

    .content-wrapper {
        display: flex;
        height: calc(100% - 24px);
        flex-direction: column;
        position: relative;
        margin: 12px;
        background: #fff;
        box-sizing: border-box;
        overflow-x: hidden;
        /*header*/

        .header {
            height: 66px;
            padding-left: 24px;
            box-sizing: border-box;
            box-shadow: 0px -1px 0px 0px #F0F2F5;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #F0F2F5;
            flex-shrink: 0;

            .header-title {
                font-size: 18px;
                font-family: PingFangSC-Medium, PingFang SC;
                font-weight: 500;
                color: #333333;
                .project-title {
                    font-size: 14px;
                    font-family: PingFangSC-Regular, PingFang SC;
                    font-weight: 400;
                    color: #333333;
                    margin-left: 12px;
                }
            }
            .option-button {
                display: flex;
                align-items: center;
                .button-item {
                    height: 48px;
                    padding: 0 24px;
                    border-right: 1px solid #F0F2F5;
                    font-size: 14px;
                    font-family: PingFangSC-Medium, PingFang SC;
                    font-weight: 500;
                    color: #666666;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                    &.last {
                        border-right: 0;
                        color: #1890FF;
                    }
                    &:hover {
                        background: #F9F9F9;
                        transition: all 0.2s;
                    }
                }
            }
            .back {
                font-size: 14px;
                font-family: PingFangSC-Medium, PingFang SC;
                font-weight: 500;
                color: #333333;
                cursor: pointer;
                margin-right: 24px;
            }
        }
        .form-wrapper {
            overflow-y: auto;
            &::-webkit-scrollbar {
                width: 6px;
            }
            .base-info {
                padding: 24px 56px 32px;
                border-bottom: 1px solid #F0F2F5;
                .status-view {
                    display: flex;
                    flex-direction: column;
                    flex-shrink: 0;
                    padding-bottom: 18px;
                    .status-text {
                        font-size: 16px;
                        font-family: PingFangSC-Medium, PingFang SC;
                        font-weight: 500;
                        &.warning {
                            color: #FFB726;
                        }
                        &.success {
                            color: #2FBDB3;
                        }
                        &.danger {
                            color: #F95B56;
                        }
                    }
                    .status-desc-text {
                        font-size: 12px;
                        font-family: PingFangSC-Regular, PingFang SC;
                        font-weight: 400;
                        color: #999999;
                        margin-top: 12px;
                    }
                }
                .info-card {
                    padding: 24px 0;
                    background: #FBFBFB;
                    border: 1px solid #EEEEEE;
                    display: flex;
                    &-item {
                        flex: 1;
                        border-right: 1px solid #EEEEEE;
                        padding: 0 32px;
                        &:last-of-type {
                            border: 0;
                        }
                        .info-item {
                            display: flex;
                            font-size: 14px;
                            font-family: PingFangSC-Regular, PingFang SC;
                            font-weight: 400;
                            line-height: 24px;
                            margin: 18px 0;
                            &__label {
                                color: #555555;
                                flex-shrink: 0;
                            }
                            &__value {
                                color: #999999;
                            }
                        }
                    }
                }
            }

        }

        .form-view {
            margin-top: 32px;
            border-bottom: 1px solid #E9E9E9;
            padding: 0 56px;
            .image-list {
                margin-top: 8px;
                .image {
                    width: 102px;
                    height: 102px;
                    border-radius: 4px;
                    cursor: pointer;
                    margin-right: 12px;
                    margin-bottom: 4px;
                }
            }
            .video-wrapper {
                width: 102px;
                height: 102px;
                border-radius: 4px;
                cursor: pointer;
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;
                overflow: hidden;
                .video-icon {
                    position: absolute;
                    width: 32px;
                    z-index: 1;
                }
                .cover {
                    width: 100%;
                    height: 100%;
                }
            }
            .form-title {
                font-size: 16px;
                font-family: PingFangSC-Semibold, PingFang SC;
                font-weight: 600;
                color: #333333;
                margin-bottom: 18px;
            }
            .form-content {
                padding: 24px 44px;
                background: #FBFBFB;
                border-radius: 2px;
                margin-bottom: 24px;
                .form-content-step {
                    margin-bottom: 24px;
                    .form-content-step-title {
                        font-weight: 500;
                        color: #555555;
                        margin-bottom: 12px;
                        position: relative;
                        &::before {
                            content: "";
                            display: block;
                            width: 10px;
                            height: 10px;
                            border-radius: 50%;
                            background: #C2C2C2;
                            position: absolute;
                            left: -22px;
                            top: 50%;
                            transform: translateY(-50%);
                        }
                    }
                }
                .feedback-item {
                    display: flex;
                    font-size: 14px;
                    font-family: PingFangSC-Medium, PingFang SC;
                    font-weight: 500;
                    color: #333333;
                    margin-bottom: 16px;
                    line-height: 14px;
                    &__title {
                        position: relative;
                        width: 100%;
                        font-size: 14px;
                        font-family: PingFangSC-Medium, PingFang SC;
                        font-weight: 500;
                        color: #333333;
                        line-height: 20px;
                    }
                    .feedback-icon-wrapper {
                        width: 60px;
                        height: 60px;
                        background: #E3E6ED;
                        border-radius: 2px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        margin: 16px 0;
                        i {
                            font-size: 44px;
                            color: #A8ADB8;
                        }
                    }
                    .required-mark {
                        color: #FF3030;
                    }
                }
            }
        }
        .operating-view {
            padding: 32px 126px 52px;
            .el-button {
                width: 120px;
                margin-right: 24px;
            }
        }
    }
    /deep/ .el-form {
        .el-form-item {
            margin-bottom: 6px;
        }
        .el-form-item__label {
            color: #555;
        }
        .bold {
            .el-form-item__label {
                font-size: 14px;
                font-family: PingFangSC-Medium, PingFang SC;
                font-weight: 500;
                color: #333333;
            }
        }
        .el-form-item__content {
            line-height: 24px;
            margin-top: 8px;
            color: #999;
        }
        .is-required {
            .el-form-item__label {
                &:before {
                    content: "*";
                    display: inline-block;
                    color: #F56C6C;
                    margin-right: 4px;
                }
            }
        }
    }
    /deep/ .el-dialog__header {
        padding-top: 10px;
        box-shadow:0 1px 0 0 rgba(233,233,233,1);
        display: flex;
        align-items: center;
        background: #FAFAFA;
        border-radius: 4px 4px 0 0;
        .el-dialog__title {
            font-weight: 500;
            color: #333;
            font-size: 14px;
        }
        .el-icon-close:before {
            color: rgb(194,194,194);
            font-size: 17px;
            font-weight: bold;
        }
        .el-dialog__headerbtn {
            top: 14px;
        }
    }
    .dialog-footer {
        display: flex;
        justify-content: center;
    }
    /deep/ .el-textarea__inner {
        resize: none;
    }
}

/deep/ .el-table {
    &::before {
        height: 0;
    }
    .el-table__row {
        &:last-of-type {
            td {
                border: none;
            }
        }
    }
    th {
        background: #f2f2f2!important;
        font-size: 14px!important;
        font-family: PingFangSC-Medium, PingFang SC!important;
        font-weight: 500!important;
        color: #333333!important;
        height: 44px!important;
        padding: 0!important;
    }
}

.table-footer {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px 0 42px;
    font-size: 14px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #333333;
    border-top: 1px solid #EBEEF5;
    .count {
        color: #F53341;
    }
    .pagination {
        margin-top: 12px;
    }
}
</style>
